package com.ebs.md.fxmonitor.marketmonitor.model;

/**
 * Perforce Revision:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/model/AbsSingleFactCancel.java $
 *  $Revision: #7 $  $Change: 114880 $  $DateTime: 2012/09/11 16:46:48 $  $Author: Arik.Sher $
 */

import com.ebs.md.api.BookSide;
import com.ebs.md.api.Rate;
import com.ebs.md.api.product.PairProduct;


public abstract class AbsSingleFactCancel
extends               AbsSingleFactByTrader
{
	// gened with Eclipse
	private static final long serialVersionUID = 6412534538801694747L;
	
	/**
	 * lifeTime of the quote, since available until interrupted (canceled).
	 * value in milliseconds
	 */
	protected long lifeTime;

	public AbsSingleFactCancel(String configInstanceName, PairProduct pair, long timestamp, String quoteId, Rate quoteRate, BookSide bookSide
			, String floorCode, String traderId
			, long lifeTime) {
		super(configInstanceName, pair, timestamp, quoteId, quoteRate, bookSide
			, floorCode, traderId);
		this.lifeTime = lifeTime;
	}

	public AbsSingleFactCancel(String configInstanceName, OBCRemove obChange) {
		super(configInstanceName, obChange);
		this.lifeTime = obChange.getEntryLifeTime();
	}

	public long getLifeTime() {
		return lifeTime;
	}

	protected String additionalFields4toString() {
		return 
		       super.additionalFields4toString()
			+ ", lifeTime=" + lifeTime
			;
	}

}
